<?php

namespace app\index\validate;

use enumerate\SmsType;
use think\Validate;

class Album  extends Validate
{
    protected $rule =   [
        'id' => 'require',
        'current' => 'require',
        'size' => 'require',
        'albumId' => 'require',
        'audioId' => 'require',
        'time' => 'require',
    ];

    protected $message  =   [
        'id.require' => 'id不能为空',
        'current.require' => 'page不能为空',
        'size.require' => 'limit不能为空',
        'albumId.require' => 'albumId不能为空',
        'audioId.require' => 'audioId不能为空',
        'time.require' => 'time不能为空',
    ];

    protected $scene = [
        'list' => ['current', 'size'],
        'chapter' => ['superiorId', 'current', 'size'],
        'addLog' => ['albumId', 'audioId', 'time'],
    ];
}